package com.scr1pt.fileshare2.config

import com.scr1pt.fileshare2.utils.ControllerLog
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

/**
 * 说明: TODO
 *
 * 创建者: tum0r
 *
 * 时间: 2022/2/4 20:12
 */
@Configuration
class FileShareConfig:WebMvcConfigurer {
    override fun addInterceptors(registry: InterceptorRegistry) {
        registry.addInterceptor(ControllerLog()).addPathPatterns("/files/**")
    }
}